home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / libs / vopl / hershey.lha / hershey / src / Makefile < prev    next >
Encoding:
Makefile  |  1991-06-17  |  1.7 KB  |  72 lines

  1. #
  2. # Makes the hershey library.
  3. # Makes the binary Hershey font file for VOGL or SGI-GL
  4. #
  5. #    Where to put the binary versions of the FONTS.
  6. #
  7. #FONTLIB = /usr/local/lib/hershey
  8. FONTLIB = /tmp
  9.  
  10. #    Where to get teh VOGL header files from (not needed on SGI)
  11. #
  12. #INC = ../../src
  13. INC=.
  14.  
  15.  
  16. CFLAGS = -O -float -DSGI -I$(INC) -DFONTLIB=\"$(FONTLIB)\"
  17.  
  18. # For VOGL...
  19. #OURLIBS = libhershey.a ../../src/libvogl.a
  20. #LIBS = -lsuntool -lsunwindow -lpixrect 
  21. #RANLIB = ranlib
  22. #
  23. # On a real SGI ...
  24. #
  25. OURLIBS = libhershey.a
  26. LIBS = -lgl_s
  27. RANLIB = echo
  28.  
  29. .IGNORE:
  30.  
  31. HDR = h2v.h
  32.  
  33. all:    libhershey.a h2v hdisp fdisp fonts
  34.  
  35. libhershey.a: htext.o check.o halloc.o fhtext.o
  36.     ar rcv libhershey.a htext.o check.o halloc.o fhtext.o
  37.     $(RANLIB) libhershey.a
  38.  
  39.  
  40. h2v:    h2v.o getchar.o
  41.     cc -o $@ $@.o getchar.o -lm
  42.  
  43. hdisp:    hdisp.o getchar.o $(OURLIBS)
  44.     cc -o $@ $@.o getchar.o $(OURLIBS) $(LIBS) -lm
  45.  
  46. fdisp:    fdisp.o $(OURLIBS)
  47.     cc -o $@ $@.o $(OURLIBS) $(LIBS) -lm
  48.  
  49. fonts:    h2v
  50.     h2v ../data/hersh.oc
  51.     h2v ../data/hersh.or ../fonts/japan.hmp japanese
  52.     mv astrology cursive cyrillic futura.l futura.m gothic.eng \
  53.     gothic.ger gothic.ita greek japanese markers math.low \
  54.     math.upp meteorology music script symbolic times.g \
  55.     times.i times.ib times.r times.rb $(FONTLIB)
  56.     touch fonts
  57.  
  58. h2v: h2v.h
  59.  
  60. clean:
  61.     rm -f astrology cursive cyrillic futura.l futura.m gothic.eng \
  62.     gothic.ger gothic.ita greek japanese markers math.low \
  63.     math.upp meteorology music script symbolic times.g \
  64.     times.i times.ib times.r times.rb *.o core fonts libhershey.a
  65.  
  66. clobber:
  67.     rm -f astrology cursive cyrillic futura.l futura.m gothic.eng \
  68.     gothic.ger gothic.ita greek japanese markers math.low \
  69.     math.upp meteorology music script symbolic times.g \
  70.     times.i times.ib times.r times.rb *.o core h2v hdisp fdisp fonts \
  71.     libhershey.a
  72.